package com.springboot.jiangan.Service.impl;

import com.springboot.jiangan.Dao.PartMapper;
import com.springboot.jiangan.Model.t_part;
import com.springboot.jiangan.Service.PartService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PartService_Impl implements PartService {

    @Autowired
    private PartMapper partMapper;

    @Override
    public List<t_part> selectJiangAn(t_part part) {
        return partMapper.selectJiangAn(part);
    }


    @Override
    public void insertJiangAn(t_part brand) {  partMapper.insertJiangAn(brand); }

    @Override
    public void updateJiangAn(t_part brand) {
        partMapper.updateJiangAn(brand);
    }

    @Override
    public void deleteJiangAn( t_part brand) {  partMapper.deleteJiangAn(brand); }

    @Override
    public t_part selectId(int id) {
        return partMapper.selectId(id);
    }
}
